﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--模型字段列表-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("article", "modelattradd", modelpowergroup))
      { %>
	<li class="menumain"><a class="addinfo" onclick="javascript:parent.onbotton('_{modelmanage_attr_add}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelAttrAdd,ctx.getInt("mid")) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addattr<%=ctx.getInt("mid") %>',self.frameElement.getAttribute('name'));" id="addattr<%=ctx.getInt("mid") %>" href="#body" title="_{modelmanage_attr_add}" hidefocus="true">_{modelmanage_attr_add}</a></li>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" title="_{selAll_botton}" hidefocus="true">_{selAll_botton}</a></li>
	<li class="menumain"><a id="bolt" href="#body" hidefocus="true" hidefocus="true">_{bolt_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{user_type_botton}</span>
				<ul>
					<li><a class="menunoclick" id="attrisclass0" href="#body" onclick="javascript:dbfilter('attrisclass','isclass',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="attrisclass1" href="#body" onclick="javascript:dbfilter('attrisclass','isclass',1,1,3,'selectform','selectall','check_all')" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" id="attrisclass2" href="#body" onclick="javascript:dbfilter('attrisclass','isclass',2,2,3,'selectform','selectall','check_all')" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{modelmanage_attr_isvalidate_botton}</span>
				<ul>
					<li><a class="menunoclick" id="isvalidate0" href="#body" onclick="javascript:dbfilter('isvalidate','isvalidate',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="isvalidate1" href="#body" onclick="javascript:dbfilter('isvalidate','isvalidate',1,1,3,'selectform','selectall','check_all')" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" id="isvalidate2" href="#body" onclick="javascript:dbfilter('isvalidate','isvalidate',2,2,3,'selectform','selectall','check_all')" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{modelmanage_attr_issearch_botton}</span>
				<ul>
					<li><a class="menunoclick" id="issearch0" href="#body" onclick="javascript:dbfilter('issearch','issearch',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="issearch1" href="#body" onclick="javascript:dbfilter('issearch','issearch',1,1,3,'selectform','selectall','check_all')" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" id="issearch2" href="#body" onclick="javascript:dbfilter('issearch','issearch',2,2,3,'selectform','selectall','check_all')" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
		</ul>
	</li>
    <%if (bllPowerGroupService.powercheck("article", "delattr", modelpowergroup))
      { %>
	<li class="menumain"><a id="del" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelAttrDel) %>','selectinfoid',false,null,null,'#{load}','_{del_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{del_botton}</a></li>
	<%} %>
    <%if (bllPowerGroupService.powercheck("article", "modelattredit", modelpowergroup))
      { %>
	<li class="menumain"><a id="sortall" onclick="javascript:sortinput('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelAttrSort,ctx.getInt("mid")) %>','#{load}','_{sort_messok}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{pid_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
</ul>